package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.CtByDayMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.CtByDay;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.CtByDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CtByDayServiceImpl implements CtByDayService {
    @Autowired
    private CtByDayMapper ctByDayMapper;

    @Override
    public List<CtByDay> selectAll() {
        return ctByDayMapper.selectAll();
    }

    @Override
    public int insert(CtByDay ctByDay) {
        return ctByDayMapper.insert(ctByDay);
    }
}
